package cm.day11;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;
import java.util.ResourceBundle;

public class Test1 {
    public static void main(String[] args) throws IOException {
       Properties pr=new Properties();
//        System.out.println(pr);
//        File file=new File("Javase_day02/src/iphone.properties");
//        System.out.println(file.getAbsolutePath());
//        FileReader fr=new FileReader();
//        pr.load(new FileReader("Javase_day02\\iphone.properties"));
//        System.out.println(pr);
        ResourceBundle rb=ResourceBundle.getBundle("iphone");
        String brand = rb.getString("brand");
        String capacity = rb.getString("capacity");
        String price = rb.getString("price");
        System.out.println(brand+" "+capacity+"  "+price);
    }
}
